import { IsString, IsNotEmpty, IsOptional, IsNumber } from 'class-validator';

export class CreateCustomerQuotationDto {
  @IsNotEmpty()
  @IsString()
  title: string;

  @IsNotEmpty()
  @IsString()
  customername: string;

  @IsNotEmpty()
  @IsString()
  tel: string;

  @IsOptional()
  @IsString()
  wechat?: string;

  @IsOptional()
  @IsString()
  wangwangid?: string;

  @IsOptional()
  @IsString()
  address?: string;

  @IsNotEmpty()
  @IsString()
  content: string;

  @IsOptional()
  @IsString()
  picture?: string;

  @IsNotEmpty()
  @IsNumber()
  author: number;

  @IsNotEmpty()
  @IsString()
  quoteid: string;
} 